<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.digest.Crc32</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.digest.Crc32";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.digest.Crc32.html" class="symbol">tango.io.digest.Crc32</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: August 2006
<p class="sec_header">Author:</p>James Pelcis
<dl>
<dt class="decl">class <a class="symbol _class" name="Crc32" href="./htmlsrc/tango.io.digest.Crc32.html#L20" kind="class" beg="20" end="107">Crc32</a> : Digest; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Crc32" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L20">#</a></dt>
<dd class="ddef">
<div class="summary">This class implements the CRC-32 checksum algorithm.
    The digest returned is a little-endian 4 byte string.</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="Crc32.this" href="./htmlsrc/tango.io.digest.Crc32.html#L28" kind="ctor" beg="28" end="32">this</a><span class="params">(Crc32 <em>crc32</em>)</span>; <a title="Permalink to this symbol" href="#Crc32.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L28">#</a></dt>
<dd class="ddef">
<div class="summary">Create a cloned CRC32</div></dd>
<dt class="decl"><a class="symbol _ctor" name="Crc32.this:2" href="./htmlsrc/tango.io.digest.Crc32.html#L42" kind="ctor" beg="42" end="64">this</a><span class="params">(uint <em>polynomial</em> = 0xEDB88320U)</span>; <a title="Permalink to this symbol" href="#Crc32.this:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L42">#</a></dt>
<dd class="ddef">
<div class="summary">Prepare Crc32 to checksum the data with a given polynomial.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>polynomial</em></td><td>The magic CRC number to base calculations on.  The
      default compatible with ZIP, PNG, ethernet and others. Note: This
      default value has poor error correcting properties.</td></tr></table></dd>
<dt class="decl">void <a class="symbol _function" name="Crc32.update" href="./htmlsrc/tango.io.digest.Crc32.html#L67" kind="function" beg="67" end="80">update</a><span class="params">(void[] <em>input</em>)</span>; <span class="attrs">[<span class="stc">override</span>]</span> <a title="Permalink to this symbol" href="#Crc32.update" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L67">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">uint <a class="symbol _function" name="Crc32.digestSize" href="./htmlsrc/tango.io.digest.Crc32.html#L83" kind="function" beg="83" end="86">digestSize</a><span class="params">()</span>; <span class="attrs">[<span class="stc">override</span>]</span> <a title="Permalink to this symbol" href="#Crc32.digestSize" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L83">#</a></dt>
<dd class="ddef">
<div class="summary">The Crc32 digestSize is 4</div></dd>
<dt class="decl">ubyte[] <a class="symbol _function" name="Crc32.binaryDigest" href="./htmlsrc/tango.io.digest.Crc32.html#L89" kind="function" beg="89" end="99">binaryDigest</a><span class="params">(ubyte[] <em>buf</em> = null)</span>; <span class="attrs">[<span class="stc">override</span>]</span> <a title="Permalink to this symbol" href="#Crc32.binaryDigest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L89">#</a></dt>
<dd class="ddef">
<div class="summary"></div></dd>
<dt class="decl">uint <a class="symbol _function" name="Crc32.crc32Digest" href="./htmlsrc/tango.io.digest.Crc32.html#L102" kind="function" beg="102" end="106">crc32Digest</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Crc32.crc32Digest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.digest.Crc32.html#L102">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the Crc32 digest as a uint</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2006 James Pelcis. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:02 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>